package mvp.com.bbc.rcjavaretrofitdaggermvp.model;

import io.reactivex.Observable;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.BaseApplication;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.apiUrl.ApiUrl;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.contact.InfoContact;

/**
 * Created by ${cbf} on 2017/12/2.
 */

public class QueryReplyModel implements InfoContact.QueryReplyModel {
    @Override
    public Observable<String> queryReplyModel(String id) {
        ApiUrl.queryReplyList list = BaseApplication.getRetrofit().create(ApiUrl.queryReplyList.class);
        Observable<String> observable = list.queryReply(id);
        return observable;
    }
}
